<?php
// This function just for memory testing..
function OB_memory_usage() {
$usage = '';
 
        $mem_usage = memory_get_usage(true); 
        
        if ($mem_usage < 1024) 
            $usage =  $mem_usage." bytes"; 
        elseif ($mem_usage < 1048576) 
            $usage = round($mem_usage/1024,2)." kilobytes"; 
        else 
            $usage = round($mem_usage/1048576,2)." megabytes"; 
            
        return $usage;
} 

// start memory test
//$start = OB_memory_usage();
$start = memory_get_usage();

/**
|--------------------------------------------------------------------------
| Obullo Framework (c) 2009 - 2010. 
|--------------------------------------------------------------------------
|
| @VERSION 1.0 @alpha6  (Current) 
| 
| PHP5 MVC-min Software for PHP 5.2.4 or newer
| Derived from Code Igniter.
|
| @license Dual licensed under the MIT and GPL licenses.
| @see     license.txt
*/ 
                                                       
// --------------------------------------------------------------------                               

define('EXT',  '.php'); 
define('BASE', 'base'. DIRECTORY_SEPARATOR);  
require(BASE . 'libraries' . DIRECTORY_SEPARATOR . 'Front_controller.php');
                                          
$application = new Front_controller();
$application->run();

// --------------------------------------------------------------------

//$end = OB_memory_usage();
$end = memory_get_usage();
echo '<b>Started memory:</b> '.$start.'<br />';
echo '<b>Total consumed memory: </b>'.$end.'<br />';

?>
